package cn.broadsense.biz.service;

import cn.broadsense.biz.bo.DataItemChannelBo;
import cn.broadsense.biz.bo.DataItemChannelQueryBo;
import cn.broadsense.biz.domain.Channel;
import cn.broadsense.biz.domain.DataItemChannel;
import cn.broadsense.biz.dto.DataItemChannelDto;
import cn.broadsense.biz.vo.ChannelVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Date;
import java.util.List;

/**
 * @author bs
 * @description 针对表【t_data_item_channel(数据接入点位)】的数据库操作Service
 * @createDate 2024-09-11 09:36:47
 */
public interface DataItemChannelService extends IService<DataItemChannel> {


    /**
     * 获取未接入的点位列表
     *
     * @return
     */
    List<Channel> listChannel(String keywords, Integer cameraType, Date start, Date end);


    /**
     * 根据条件查询数据接入点位列表
     *
     * @param queryBo
     * @return
     */
    List<DataItemChannel> findList(DataItemChannelQueryBo queryBo);


    /**
     * 新建点位接入
     *
     * @param channelIdList
     */
    void saveChannelList(List<Long> channelIdList);


    /**
     * 导入点位信息
     *
     * @param itemChannelList
     */
    void importChannelList(List<DataItemChannelBo> itemChannelList);


    /**
     * 批量删除
     *
     * @param idList
     */
    void batchRemove(List<Long> idList);

    /**
     * 获取详情
     *
     * @param id
     * @return
     */
    DataItemChannelDto getDetails(Long id);


    /**
     * 同步数据
     * @param idList
     */
    void batchSyncData(List<Long> idList);

}
